package com.jhc.system.controller;

import com.jhc.api.domain.User;
import com.jhc.common.core.base.BaseController;
import com.jhc.api.system.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController extends BaseController<UserService> {

    @GetMapping("/info")
    public User getInfo(){
        return service.getById(service.getUserId());
    }

}
